Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add isOpen() method #387

Closed
wants to merge 2 commits into from
Closed

Conversation

johnyesberg
Copy link

Hi, thanks for your work on serialport. The isOpen method would be useful for my project - I wondered whether you thought it would be appropriate to add.
Regards, John.

@reconbot
Copy link
Member

Just a few nits. You're missing a semicolon which is causing your tests to fail. You can also drop the else.

As for the code content; Is an open FD analogous to an open port? I'm fairly certain that this wont work on window as we don't get a file descriptor for the port. I think we'd have to keep a flag on the instance that is hooked into the events.

@voodootikigod
Copy link
Collaborator

closed.

arahlf added a commit to arahlf/node-serialport that referenced this pull request Apr 27, 2015
The isOpen method was originally proposed to be added as part of serialport#387 but was never merged.  That original PR had updated the README as part of it, but when the isOpen was actually added later ( serialport@21a076a ), the docs were never updated.
@arahlf arahlf mentioned this pull request Apr 27, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants